import request from '@/utils/request'

// 查询认证记录列表
export function listAuthRecord(query) {
    return request({
        url: '/business/authRecord/list',
        method: 'get',
        params: query
    })
}

// 查询认证记录详细
export function getAuthRecord(authRecordId) {
    return request({
        url: '/business/authRecord/' + authRecordId,
        method: 'get'
    })
}

// 新增认证记录
export function addAuthRecord(data) {
    return request({
        url: '/business/authRecord',
        method: 'post',
        data: data
    })
}

// 修改认证记录
export function updateAuthRecord(data) {
    return request({
        url: '/business/authRecord',
        method: 'put',
        data: data
    })
}
// 审核
export function review(data) {
    return request({
        url: '/business/authRecord/review',
        method: 'put',
        data: data
    })
}

// 删除认证记录
export function delAuthRecord(authRecordId) {
    return request({
        url: '/business/authRecord/' + authRecordId,
        method: 'delete'
    })
}
